﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RbacPermissionManage.DoMain
{
    /// <summary>
    /// 管理员表
    /// </summary>
    [Table("Admin")]
    public class Admin: Audit
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int AdminId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string? FullName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string? Pwd { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string? Avatar { get; set; }

        /// <summary>
        /// 末次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 末次登录IP
        /// </summary>
        public string? LastLoginIP { get; set; }
    }
}
